export class Page<T> {
  constructor(items: Array<T>, pageCount: number, pageIndex: number, pageSize: number, itemCount: number, extras: Array<any> = []) {
    this.items = items;
    this.pageCount = pageCount;
    this.pageIndex = pageIndex;
    this.pageSize = pageSize;
    this.itemCount = itemCount;
    this.extras = extras;
  }

  items: Array<T> = [];
  pageCount: number = 0;
  pageIndex: number = 1;
  pageSize: number = 0;
  itemCount: number = 0;
  extras: Array<any> = [];
}
